import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/goodsMarket/listData',
    method: 'post',
    data
  })
}

export function refresh() {
  return request({
    url: '/goodsMarket/refresh',
    method: 'post'
  })
}

export function getCategoryList() {
  return request({
    url: '/goodsMarket/getCategoryList',
    method: 'post'
  })
}

export function settingPercent(data) {
  return request({
    url: '/goodsMarket/settingPercent',
    method: 'post',
    data
  })
}

export function getPercent() {
  return request({
    url: '/goodsMarket/getPercent',
    method: 'post'
  })
}
// 获取skinsBus设置
export function getGoodsOfficialPercentList() {
  return request({
    url: '/goodsMarket/getGoodsOfficialPercentList',
    method: 'post'
  })
}
// 保存skinsBus设置
export function setGoodsOfficialPercentList(data) {
  return request({
    url: '/goodsMarket/setGoodsOfficialPercentList',
    method: 'post',
    data
  })
}
// igxe
export function settingIgxePercent(data) {
  return request({
    url: '/goodsMarket/settingIgxePercent',
    method: 'post',
    data
  })
}

export function getIgxePercent() {
  return request({
    url: '/goodsMarket/getIgxePercent',
    method: 'post'
  })
}

